package com.mhtool.core.exception;

import org.springframework.lang.Nullable;

import static com.mhtool.core.message.MessageUtils.NOT_NULL;
import static java.lang.String.format;

/**
 * @author yin
 * @date 2021/12/27 17:20
 * @since 8.0.0
 */
public abstract class Assert extends org.springframework.util.Assert {
    public static void notNull(@Nullable Object object, String name) {
        String message = format(NOT_NULL, name);
        org.springframework.util.Assert.notNull(object, message);
    }
}
